package de.hfu.mdsd.mm.guimodel.android;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.View;

public class TabOneActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tab1);
        
    }
    
    public void onButtonClick(View view) {
    	showDialog(0);
    }
    
    @Override
    public Dialog onCreateDialog(int id) {
    	switch (id) {
    	case 0: {
    		Builder builder = new AlertDialog.Builder(this);
    		builder.setTitle("Test");
    		builder.setMessage("TestMessage");
    		builder.setPositiveButton("Ok", new OnClickListener() {
				
				public void onClick(DialogInterface dialog, int which) {
					// TODO Auto-generated method stub
					
				}
			});
    		
    		builder.setNegativeButton("Abbrechen", null);
    		builder.show();
    	}
    	
    	case 1:
    	}

		return null;
    	
    }
    
}